import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import Layout from './components/layout.vue'
import IndexPage from './pages/index.vue'
import  Vuex from 'vuex'
Vue.use(VueRouter)
Vue.use(VueResource)

let  router=new VueRouter({
  mode:'history',
  routes:[
    {
      path:'/',
      component:IndexPage
      }
  ]
})
new Vue({
  el: '#app',
  router,
  //store,
  template:'<Layout/>',
  components:{Layout}
  //render: h => h(App)
})
